<?php

/**
 * Intro form.
 *
 * @package    SistemaWebUnlSenescyt
 * @subpackage form
 * @author     JFernando
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class IntroForm extends BaseIntroForm {

    protected static $subject = array(0 => 'Seleccione una opci&oacute;n',
        1 => '1 Entidad',
        2 => '2 Entidades');

    public function configure() {

        $this->useFields(array('nfondos'));

        $this->setWidgets(array(
            'nfondos' => new sfWidgetFormSelect(array('choices' => self::$subject)),
        ));

        $this->widgetSchema->setLabels(array(            
            'nfondos' => 'N&uacute;mero de Entidades que  <br />contendra el proyecto',          
        ));
        
        $this->setValidators(array(
            'nfondos' => new sfValidatorChoice(array('choices' => array_keys(self::$subject))),
        ));
        
        $this->widgetSchema->setNameFormat('intro[%s]');
    }

}
